/**
 * jims
 */
package com.jims.master.modules.blood.entity;

import com.jims.master.modules.sys.entity.OrgDept;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;

/**
 * 验血表Entity
 * @author CTQ
 * @version 2017-04-12
 */
public class BloodTest extends DataEntity<BloodTest> {

	private static final long serialVersionUID = 1L;
	private String visitId;		// 住院号
	private String clinicId;		// 门诊id
	private String patientId;		// 病人id
	private String inoroutFlag;		// 住院/门诊
	private String bloodGroup;		// 血型
	private String testFeeFlag;		// 是否收取验血费
	private String rh;		// RH
	private String testNo;		// 验血申请单号
	private String bloodAntiboby;		// 血型抗体筛查
	private Date rq;		// 验血日期
	private String testUser;		// 检验者
	private String assessor;		// 审检者

	private String name;
	private String sex;
	private String visitNo;
	private OrgDept deptStayed;
	private String chargeType;
	private String wardCode;



	public BloodTest() {
		super();
	}

	public BloodTest(String id){
		super(id);
	}

	@Length(min=0, max=64, message="住院号长度必须介于 0 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}

	@Length(min=0, max=64, message="门诊id长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}

	@Length(min=0, max=64, message="病人id长度必须介于 0 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}

	@Length(min=1, max=1, message="住院/门诊长度必须介于 1 和 1 之间")
	public String getInoroutFlag() {
		return inoroutFlag;
	}

	public void setInoroutFlag(String inoroutFlag) {
		this.inoroutFlag = inoroutFlag;
	}

	@Length(min=0, max=2, message="血型长度必须介于 0 和 2 之间")
	public String getBloodGroup() {
		return bloodGroup;
	}

	public void setBloodGroup(String bloodGroup) {
		this.bloodGroup = bloodGroup;
	}

	@Length(min=0, max=1, message="是否收取验血费长度必须介于 0 和 1 之间")
	public String getTestFeeFlag() {
		return testFeeFlag;
	}

	public void setTestFeeFlag(String testFeeFlag) {
		this.testFeeFlag = testFeeFlag;
	}

	@Length(min=0, max=1, message="RH长度必须介于 0 和 1 之间")
	public String getRh() {
		return rh;
	}

	public void setRh(String rh) {
		this.rh = rh;
	}

	@Length(min=0, max=20, message="验血申请单号长度必须介于 0 和 20 之间")
	public String getTestNo() {
		return testNo;
	}

	public void setTestNo(String testNo) {
		this.testNo = testNo;
	}

	@Length(min=0, max=2, message="血型抗体筛查长度必须介于 0 和 2 之间")
	public String getBloodAntiboby() {
		return bloodAntiboby;
	}

	public void setBloodAntiboby(String bloodAntiboby) {
		this.bloodAntiboby = bloodAntiboby;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRq() {
		return rq;
	}

	public void setRq(Date rq) {
		this.rq = rq;
	}

	@Length(min=0, max=64, message="检验者长度必须介于 0 和 64 之间")
	public String getTestUser() {
		return testUser;
	}

	public void setTestUser(String testUser) {
		this.testUser = testUser;
	}


	@Length(min=0, max=64, message="审检者长度必须介于 0 和 64 之间")
	public String getAssessor() {
		return assessor;
	}

	public void setAssessor(String assessor) {
		this.assessor = assessor;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getVisitNo() {
		return visitNo;
	}

	public void setVisitNo(String visitNo) {
		this.visitNo = visitNo;
	}

	public OrgDept getDeptStayed() {
		return deptStayed;
	}

	public void setDeptStayed(OrgDept deptStayed) {
		this.deptStayed = deptStayed;
	}

	public String getChargeType() {
		return chargeType;
	}

	public void setChargeType(String chargeType) {
		this.chargeType = chargeType;
	}

	public String getWardCode() {
		return wardCode;
	}

	public void setWardCode(String wardCode) {
		this.wardCode = wardCode;
	}
}